package demo04;

public class Phone {
    String color;
    String name;
    double price;

    public static void main(String[] args) {
        Phone p=new Phone();
        p.color="黑色";
        p.name="小米";
        p.price=1399.0;
        show(p);

    }
    public static void show(Phone p){
        System.out.print("手机的名字是："+p.name+" 手机的颜色是："+p.color+" 手机的价钱是："+p.price);

    }
}
